import 'package:flutter/material.dart';

/// 初始化环境配置
class AppConfig extends InheritedWidget {

  /// BaseUrl
  static String apiHost = '';
  /// 微信APPID
  static String wxAppId = 'wxd12e158cf93f9b14';
  /// APPStore ID
  static String appStoreId = '1606896470';
  /// 微信 universalLink
  static String universalLink = 'https://api.shanghaimoke.com/apple-app-site-association';
  /// 微信客服Url
  static String wxCustomerServiceUrl = 'https://work.weixin.qq.com/kfid/kfc9a59eb0afd5aec51';
  /// 企业微信ID
  static String corpId = 'wwdd6ab4aa33024b64';
  /// 秘钥
  static String secretKey = '6GRHg6Qv';
  /// QQ AppID
  static String qqAppId = '101997834';
  /// 分享页
  static String shareWebPage = 'http://h5.shanghaimoke.com/pages/join/downloadAPP';

  static String token = '';
  
  AppConfig(Widget child, {required String apiHost}): super(child: child) {
    AppConfig.apiHost = apiHost;
  }
  static AppConfig? of(BuildContext context) {
    return context.dependOnInheritedWidgetOfExactType<AppConfig>();
  }
  @override
  bool updateShouldNotify(InheritedWidget oldWidget) => false;
}
